package leetcode.sword;

public class P15 {
    // you need to treat n as an unsigned value
    public static void main(String[] args) {
        System.out.println((long)((-1)&(0x0FFFFFFFF))); //坑人做法
//        hammingWeight(4294967295l)

    }
//    public static  int hammingWeight(int n) {
//        int count = 0;
//        while (n!=0){
//            count += n&1;
//            n >>>= 1;
//        }
//        return count;
//    }
}
